import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/upload_voice_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/upload_voice_entity.g.dart';

@JsonSerializable()
class UploadVoiceEntity {
	String? msg;
	int? code;
	UploadVoiceData? data;

	UploadVoiceEntity();

	factory UploadVoiceEntity.fromJson(Map<String, dynamic> json) => $UploadVoiceEntityFromJson(json);

	Map<String, dynamic> toJson() => $UploadVoiceEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UploadVoiceData {
	String? createTime;
	UploadVoiceDataParams? params;
	String? lang;
	int? id;
	int? deviceId;
	int? userId;
	int? voiceType;
	int? aiPlatform;
	int? status;

	UploadVoiceData();

	factory UploadVoiceData.fromJson(Map<String, dynamic> json) => $UploadVoiceDataFromJson(json);

	Map<String, dynamic> toJson() => $UploadVoiceDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UploadVoiceDataParams {


	UploadVoiceDataParams();

	factory UploadVoiceDataParams.fromJson(Map<String, dynamic> json) => $UploadVoiceDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $UploadVoiceDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}